package net.stuffrepos.bricknetcenter.plugins.bricklink;

import net.stuffrepos.bricknetcenter.http.HttpParser;

/**
 *
 * @author Eduardo H. Bogoni <eduardobogoni@gmail.com>
 */
public class BrickLinkItemCatalogItemsRequest extends BrickLinkCatalogDownloadRequest {   
    
    private BrickLinkItemType itemType;

    BrickLinkItemCatalogItemsRequest(BrickLinkItemType itemType) {
        super(ViewType.CatalogItems, itemType.getCode(), "", "");        
        this.itemType = itemType;
    }


    @Override
    public Class<? extends HttpParser> getParserClass() {
        return BrickLinkCatalogParser.class;
    }

    @Override
    public Object[] getParserArguments() {
        return new Object[]{itemType.toString()};
    }

}
